package com.accenture.automation.biz.api.bean;

import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.annotation.JSONField;


public class RequestBaseBean<T> {
	
	@JSONField(name = "AppId")
	private String appId;
	@JSONField(name = "BatchId")
	private String batchId;
	@JSONField(name = "Request")
	private Map<String, T>  request = new HashMap<String, T>(); 
	public String getAppId() {
		return appId;
	}
	public void setAppId(String appId) {
		this.appId = appId;
	}
	public String getBatchId() {
		return batchId;
	}
	public void setBatchId(String batchId) {
		this.batchId = batchId;
	}
	public Map<String, T> getRequest() {
		return request;
	}
	public void setRequest(Map<String, T> request) {
		this.request = request;
	}
	
	public void put(String key,T item){
		request.put(key, item);
	}
	public void put(Map<String, T> items){
		request.putAll(items);
	}
	public void putData(T item){
		request.put("Data", item);
	}

}
